<{extends file="BaseHtml.tpl.html"}> <{block name=head}>
<link href="<{$smarty.const.WEB_PATH}>skin/css/datetimepicker.css"
	rel="stylesheet">
<{/block}> <{block name=content}>

<div class="span12 container_background">
	<div class="row-fluid">
	   <div class="span3 left_tag">
            <!-- 发布 -->
            <div class="conf_tag_title">活动信息</div>
            <ul class="conf_tag">
                <li class="tag_title"><div>功能</div></li>
                <li> 状态:<span class="margin5lr event_status_label label label-warning padding5" style="font-size:14px;">新增</span></li>
                <li><a class="btn btn-small btn-success" onclick="eventObj.save_event()">保存活动</a>
                 <a class="btn btn-small btn-success systembutton" title="返回活动列表" act="list" key="event">返回列表</a>
                 </li>
                <!-- <li><a class="btn btn-small">预览活动</a> </li> -->
                <li>
                    <div class="btn-group margin5tb" data-toggle="buttons-radio" style="text-indent: 0px;">
		                <a class="btn btn-small btn-info eflag" key="0">草稿</a>
		                <a class="btn btn-small btn-info eflag" key="1">发布</a>
		                <a class="btn btn-small btn-info eflag" key="2">停止</a>
		                <a class="btn btn-small btn-info eflag" key="3">删除</a>
                    </div>
		                <input type="hidden" id="status" value="0"/>
                </li>
                <li class="tag_end">
                </li>
            </ul>
             <!-- qrcode begin-->
            <ul class="conf_tag qrcodediv" style="display: none;">
                <li class="tag_title"><div>活动二维码[活动APP下载地址]</div></li>
                <li class='mouse_li qrcodeimg' style="text-indent: 55px;">
                </li>
                <li class="tag_end mouse_li"> </li>
            </ul><!-- qrcode end-->
            <!-- 开始/结束时间 -->
            <ul class="conf_tag">
                <li class="tag_title"><div>活动时间 </div></li>
                <li class='mouse_li'><span class="label label-info">活动开始时间</span> <input
                            placeholder="选择起始日期" id="startdate" type="text"
                            class="form_date "></li>
                <li class="tag_end mouse_li"> <span class="label">活动结束时间</span> <input placeholder="选择结束日期"
                            id="enddate" type="text" class="form_date"></li>
            </ul>
            <!-- 形式 -->
            <ul class="conf_tag">
                <li class="tag_title"><div>形式</div></li>
                <li class="tag_end"><label class="radio"> <input type="radio"
                            name="optionsRadios" id="type1" value="1"
                            onclick="eventObj.seteventype('1')" checked> 公开活动
                        </label> <label class="radio"> <input type="radio"
                            name="optionsRadios" id="type2" value="2"
                            onclick="eventObj.seteventype('2')"> 私人活动
                        </label> <input type="hidden" value="1" id="ectype" /></li>
            </ul>
            <!-- 嘉宾 -->
           <!--  <ul class="conf_tag">
                <li class="tag_title"><div>活动拟邀嘉宾</div></li>
                <li><a class="btn btn-small" id="clean_glist">清空列表</a> <a
                            class="btn right btn-small btn-primary" onclick="eventObj.open_guest_dialog(this)">选择</a></li>
                <li class="tag_end glist">
                </li>
            </ul> -->
        </div>
        <!-- right menu -->
		<div class="span9" id="content-wrapper">
		     <div id="content">
		     <section >
                  <header>
                    <div class="pull-right">
                        <!-- <a class="btn btn-small right_fnbtn" mm-view=".event_info" mm-fn="save" mm-name="活动信息" mm-call="eventinfo" >确定</a> -->
                    </div>
                    <h1>活动主题</h1>
                  </header>
                  <div class="row-fluid event_info">
                        <div class="span12 event_info_form">
						<!-- 活动简单内容 -->
						<div class="control-group">
							<label class="control-label" for="input01">主题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="label label-success margin10lr padding5 font14">app活动标题部分:请录入主题不超过8个字符</span></label>
							<div class="controls">
								<input type="text" placeholder="活动名称" class="input-xxlarge"
									id="name">
								
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">标题</label>
							<div class="controls">
								<input type="text" placeholder="活动标题" class="input-xxlarge"
									id="title"> <input type="text" placeholder="活动副标题"
									class="input-xlarge" id="subtitle">
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">描述</label>
							<div class="controls">
								<textarea rows="5" style="width: 530px;" placeholder="活动描述"
									id="desc"></textarea>
							</div>
						</div>
						<div class="control-group">
                            <label class="control-label" for="input01">活动微博<span class="label label-success margin10lr padding5 font14">app活动官方微博:请录入新浪微博名称</span></label>
                            <div class="controls">
                                <input type="text" placeholder="活动微博" class="input-xxlarge"
                                    id="weibo">
                            </div>
                        </div>
						<!-- 活动简单内容 end -->
                        </div>
                        <div class="span12 event_info_view" style="display: none;">
                            <ul class="ulist">
                            </ul>
                        </div>
					</div>
                </section>
                
                 <section>
                  <div class="sub-header">
                    <div class="pull-right" style="margin-right:30px;">
                        <!-- <a class="btn btn-mini right_fnbtn" mm-view=".event_local" mm-fn="save" mm-name="地区信息" mm-call="eventlocal">确定</a> -->
                    </div>
                    <h2>地区信息</h2>
                  </div>
                  <div class="row-fluid row-fluid-alternate-bg event_local">
                    <div class="span12 event_local_form">
                        <!-- 地区 -->
		                <div class="control-group">
		                    <label class="control-label" for="input01">导航地址<span class="label label-success margin10lr padding5 font14">app地图搜索关键字. 如:广州市天河城广场</span></label>
		                    <div class="controls">
		                        <input type="text" placeholder="活动地址" class="input-xlarge" id="city">
		                    </div>
		                </div>
		                <div class="control-group">
		                    <label class="control-label" for="input01">活动地址<span class="label label-success margin10lr padding5 font14">app显示活动的详细地址</span></label>
		                    <div class="controls">
		                        <input type="text" placeholder="地址" class="input-xxlarge"
		                            id="address">
		                    </div>
		                </div>
		                <!-- 地区 end -->
                    </div>
                    <div class="span12 event_local_view"  style="display: none;">
                        <ul class="ulist">
                        </ul>
                    </div>
                  </div>
                </section>
                
                <!-- 联系人 -->
				<section class="contactperson" style="display: none;">
                  <div class="sub-header">
                    <div class="pull-right" style="margin-right:30px;">
                        <!-- <a class="btn btn-mini right_fnbtn" mm-view=".event_contact" mm-fn="save" mm-name="联系人信息" mm-call="eventcontact">确定</a> -->
                    </div>
                    <h2>联系人</h2>
                  </div>
                  <div class="row-fluid row-fluid-alternate-bg event_contact">
                    <div class="span12 event_contact_form">
		                <div class="control-group">
		                    <label class="control-label" for="input01">联系人&nbsp;&nbsp;&nbsp;<span class="label label-success margin10lr padding5 font14">app拨号时显示的联系人信息.</span></label>
		                    <div class="controls">
		                        <input type="text" placeholder="名称" class="input-large"
		                            id="contact_name">
		                    </div>
		                </div>
		                <div class="control-group">
		                    <label class="control-label" for="input01">联系电话</label>
		                    <div class="controls">
		                        <input type="text" placeholder="联系电话" class="input-large"
		                            id="contact_t1"> 
		                            <input type="text" placeholder="备用电话"
		                            class="input-large" id="contact_t2">
			                    <button class="btn btn-primary addcontact margin10b" onclick="eventObj.add_contact()">
			                        <i class="icon-plus icon-white margin5r"></i>添加
			                    </button>
		                    </div>
		                </div>
		                <div class="btn-group margin10b">
		                </div>
		                <div class="span12">
		                    <ul class="contactpersons">
		                    </ul>
		                </div>
                    </div>
	                  <div class="span12 event_contact_view" style="display: none;">
	                      <ul class="ulist">
	                      </ul>
	                  </div>
                  </div>
                </section>
		        <!-- 联系人 end -->
		        		        		        
                <!-- about us -->
                <section class="aboutus" style="display: none;">
                  <div class="sub-header">
                    <div class="pull-right" style="margin-right:30px;">
                        <!-- <a class="btn btn-mini right_fnbtn" mm-view=".event_aboutus" mm-fn="save" mm-name="关于我们" mm-call="eventaboutus">保存正文</a> -->
                        <span class='label label-success margin5tb about_tips' style="display: none;">保存正文成功~!</span>
                        <a class="btn btn-mini" onclick="eventObj.save_aboutus()">保存正文</a>
                    </div>
                    <h2>关于我们</h2>
                  </div>
                  <div class="row-fluid row-fluid-alternate-bg event_contact">
                    <div class="span12 event_contact_form">
                        
                        <div class="control-group">
                            <label class="control-label" for="input01">标题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="label label-success margin10lr padding5 font14">app关于我们的信息.</span></label>
                            <div class="controls">
                                <input type="text" placeholder="正文标题" class="input-xlarge"
                                    id="about_title">
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="input01">正文</label>
                            <div class="controls">
                                <textarea placeholder="正文" class="input-xxlarge" id="about_content" style="height:150px;"></textarea>                                   
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="input01">链接&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="label label-success margin10lr padding5 font14">app关于我们的链接地址.如:weibo.sina.com</span></label>
                            <div class="controls">
                                <input type="text" placeholder="链接信息(选填)" class="input-xxlarge"
                                    id="about_url">
                            </div>
                        </div>
                    </div>                     
                  </div>
                </section>
                <!-- about us end -->
			</div>
		</div>
	</div>
</div>
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog"
    aria-labelledby="myModalLabel" aria-hidden="true" style="">
    
    <div class="modal-header">
        <button type="button" class="close canceldialog" 
            aria-hidden="true"  onclick="">×</button>
        <h3 id="myModalLabel">提示</h3>
    </div>
    <div class="modal-body">
            <div class="control-group">
                                                活动信息保存成功!
            </div>
    </div>
    <div class="modal-footer">
        <a class="btn btn-info systembutton" act="list" key="event" aria-hidden="true">进入活动列表</a>
        <a class="btn canceldialog btn-success" aria-hidden="true">确定</a>
    </div>
    
</div>
<div id="myModal2" class="modal hide fade" tabindex="-1" role="dialog"
    aria-labelledby="myModalLabel" aria-hidden="true" style="">
    
    <div class="modal-header">
        <button type="button" class="close canceldialog2" 
            aria-hidden="true"  onclick="">×</button>
        <h3 id="myModalLabel">嘉宾列表</h3>
    </div>
    <div class="modal-body">
             <div class="control-group guestselectlist" data-toggle="buttons-checkbox">
            </div>
    </div>
    <div class="modal-footer">
        <span class="label label-info left guestdialogmsg">没有选择嘉宾</span>
        <a class="btn canceldialog2" aria-hidden="true">取消</a>
        <a class="btn btn-primary" aria-hidden="true" id="guest_dialog_save">确定</a>
    </div>
    
</div>
<{/block}> <{block name=body_end}>
<script type="text/javascript">
	var site = {
		web   : "<{$smarty.const.WEB_PATH}>",
		uid   : "<{$user.id}>",
		title : "<{$default}>",
		module: "my/event/",
		getevent: "my/event/geteventinfo",
		creevent: "createevent",
		updevent: "updateevent",
		guest:"eventguest"
	};
</script>
<script type="text/javascript"
	src="<{$smarty.const.WEB_PATH}>js/plus/Bootstrap/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript"
    src="<{$smarty.const.WEB_PATH}>js/common/util.js"></script>
<script type="text/javascript"
	src="<{$smarty.const.WEB_PATH}>js/my/cparty.js"></script>

<{/block}>
